﻿@using ExampleWebApplication.Controllers
@using ExampleWebApplication.Models
@using ExampleWebApplication.Properties
<h2>
    @NHibernateStrings.Example11d1
</h2>
@(Html.Telerik().Grid<CustomerModel>().Name("Grid")
        .Columns(columns =>
        {
            columns.Bound(x => x.CustomerName).Width(80);
            columns.Bound(x => x.Bool);
        })
        .EnableCustomBinding(true).Sortable().Filterable().Groupable().Pageable(x => x.PageSize(15))
        .DataBinding(dataBinding => dataBinding.Ajax().Select<NHibernateController>(ctr => ctr.BooleanSubstituteData(null))))